﻿using ColdCore.Business;
using ColdCore.Business.Base_SysManage;
using ColdCore.Util;
using Microsoft.AspNetCore.Mvc.Razor;

namespace Microsoft.AspNetCore.Mvc
{
    public abstract class DependencyViewPage : RazorPage<dynamic>
    {
        public IBase_UrlPermissionBusiness PermissionManage { get => AutofacHelper.GetScopeService<IBase_UrlPermissionBusiness>(); }
        public IBase_SysMenuBusiness SystemMenuManage { get => AutofacHelper.GetScopeService<IBase_SysMenuBusiness>(); }
        public IBase_UserBusiness SysUserBus { get => AutofacHelper.GetScopeService<IBase_UserBusiness>(); }
        public IOperator Operator { get => AutofacHelper.GetScopeService<IOperator>(); }
    }
}